﻿
using System.Collections;
using FlowCanvas;
using FlowCanvas.Nodes;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class GetCityTask : CallableActionNodeBase
    {

        private int taskId = 1;
        public void Invoke(int taskId)
        {
            BlueprintUtils.GetCityTask(taskId);
        }
        protected override void OnRegisterPorts(FlowNode node)
		{
            var p1 = node.AddValueInput<int>("taskId");

           
            node.AddFlowInput("In", (Flow f) =>
            {
                taskId = p1.value;
                
                Invoke(p1.value);
            });
        }
	}
}